import logging

from egpylons.lib.base import *

log = logging.getLogger(__name__)

class BlogController(BaseController):

    def index(self):
        q = model.Session.query(model.Blog)
        c.posts = q.limit(5)
        return render("blog.index")
